From 3322a194ff998639b057ce3f5d0c677ae5d9cde8 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sun, 11 Mar 2007 10:44:41 +0000 Subject: [PATCH] (diff-apply-hunk): Use proper format string for error. --- lisp/diff-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el index ccd945db98e..543e1bd6a39 100644 --- a/lisp/diff-mode.el +++ b/lisp/diff-mode.el @@ -1375,7 +1375,8 @@ With a prefix argument, REVERSE the hunk." (yes-or-no-p (format "Really apply this hunk to %s? " (file-name-nondirectory buffer-file-name))))))) - (error (substitute-command-keys + (error "%s" + (substitute-command-keys (format "Use %s\\[diff-apply-hunk] to apply it to the other file" (if (not reverse) "\\[universal-argument] "))))) ((and switched -- 2.30.2